<div class="form">
<?php 
Yii::app()->clientScript->registerScript('RUN3', "
$('#Familiar_2_run').Rut({
   on_error: function(){ $('#Familiar_2_run').val(''); alert('El rut ingresado es incorrecto'); }
})
");?>
	<p class="note">
		Los campos con <span class="required">*</span> son obligatorios.
	</p>
	
	

    <?php echo $form->errorSummary($familiar); ?>
	
    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]nombres'); ?>
        <?php echo $form->TextField($familiar,'[2]nombres'); ?>
        <?php echo $form->error($familiar,'[2]nombres'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]apellido_paterno'); ?>
        <?php echo $form->TextField($familiar,'[2]apellido_paterno'); ?>
        <?php echo $form->error($familiar,'[2]apellido_paterno'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]apellido_materno'); ?>
        <?php echo $form->TextField($familiar,'[2]apellido_materno'); ?>
        <?php echo $form->error($familiar,'[2]apellido_materno'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]direccion'); ?>
        <?php echo $form->TextField($familiar,'[2]direccion'); ?>
        <?php echo $form->error($familiar,'[2]direccion'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]telefono'); ?>
        <?php echo $form->TextField($familiar,'[2]telefono'); ?>
        <?php echo $form->error($familiar,'[2]telefono'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]run'); ?>
       	<?php echo $form->textField($familiar,'[2]run',array('maxlength'=>12));?>
        <?php echo $form->error($familiar,'[2]run'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]nivel_estudios'); ?>
        <?php echo $form->TextField($familiar,'[2]nivel_estudios'); ?>
        <?php echo $form->error($familiar,'[2]nivel_estudios'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]actividad'); ?>
        <?php echo $form->TextField($familiar,'[2]actividad'); ?>
        <?php echo $form->error($familiar,'[2]actividad'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]parentesco'); ?>
        <?php echo $form->TextField($familiar,'[2]parentezco'); ?>
        <?php echo $form->error($familiar,'[2]parentezco'); ?>
    </div>
	
	<div class="row">
        <?php echo $form->LabelEx($familiar,'[2]sexo'); ?>
        <?php echo $form->dropDownList($familiar,'[2]sexo',$familiar->sexos); ?>
        <?php echo $form->error($familiar,'[2]sexo'); ?>
    </div>
	
    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]email'); ?>
        <?php echo $form->TextField($familiar,'[2]email'); ?>
        <?php echo $form->error($familiar,'[2]email'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[2]apoderado'); ?>
      	<?php echo $form->DropDownList($familiar,'[2]apoderado',array(1=>"Si")); ?>
        <?php echo $form->error($familiar,'[2]apoderado'); ?>
    </div>


</div>
<!-- form -->
